Skip to content

Preserve speaker confidence in streaming events - #325

Open
codebanditssss wants to merge 1 commit into
AssemblyAI:masterfrom
codebanditssss:fix/streaming-speaker-confidence
Open

codebanditssss wants to merge 1 commit into
AssemblyAI:masterfrom
codebanditssss:fix/streaming-speaker-confidence

Conversation

@codebanditssss

Copy link
Copy Markdown

Fixes #322

Add optional speaker_confidence fields to streaming words and turns, preserving supplied scores and zero values while allowing omission. Do not impose probability bounds on these experimental, uncalibrated scores. Bump the version to 1.10.13 as required by CI.

Validation under Python 3.12 with Pydantic 1.10.26 and 2.12.5:

  • Before: all 6 new regressions failed. After: all 6 pass.
  • Full unit suite: 1,040 passed in each environment, with no skips.
  • Tests exercise sync/async public callbacks and dictionary/JSON serialization with populated, zero, and absent scores, preserving the rest of each payload.
  • Changed-file Ruff/format and whitespace checks pass. Mypy passes under v2; its 3 pre-existing v1 model/config diagnostics remain unchanged. No new diagnostics or suppressions.

WebSocket transport is mocked. No live API calls were made. The broader Python/tox matrix and service smoke tests were not run.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Streaming Turn callbacks silently discard documented speaker confidence scores

1 participant